package com.study.d027shape2d;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.effect.BlendMode;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Ellipse;
import javafx.scene.shape.Line;
import javafx.scene.shape.Rectangle;
import javafx.scene.shape.StrokeLineJoin;
import javafx.scene.shape.StrokeType;
import javafx.stage.Stage;

/** 椭圆
*@description
*@author xtayhame
*date 2020年3月21日
*version
*since v1.0
*/
public class EllipseMain extends Application{
	public static void main(String[] args) {
		launch(args);
	}
	@Override
	public void start(Stage stage) throws Exception {
		AnchorPane anchorPane = new AnchorPane();
		HBox box = new HBox(10);

		Ellipse e1 = new Ellipse(0, 0, 50, 100);

		Ellipse e2 = new Ellipse();
		e2.setCenterX(0);
		e2.setCenterY(0);
		e2.setRadiusX(100);
		e2.setRadiusY(50);


		box.getChildren().addAll(e1,e2);
		anchorPane.getChildren().add(box);
		AnchorPane.setTopAnchor(box, 30.0);
		stage.setScene(new Scene(anchorPane, 800, 500));
		stage.show();
	}
}
